package org.example.trans.demos.test;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.trans.demos.model.UserInfo;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Mapper
public interface UserInfoMapper {
    @Transactional(propagation = Propagation.REQUIRED)
    @Insert("insert into user_info values (null , #{userName} ,#{password},now() , now())")
    int insertUser(UserInfo userInfo);
}
